<!DOCTYPE html>
<html lang="en" id="modernizrcom" class="no-js">
    <head>

        <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
        <META HTTP-EQUIV="Expires" CONTENT="-1">

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?= $title ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" href="<?= base_url(); ?>assets/img/favicon.ico">

        <link rel="stylesheet" href="<?= base_url(); ?>assets/css/jquery-ui-1.8.16.custom.css" />
        <link rel="stylesheet" href="<?= base_url(); ?>assets/css/freeow.css">
        <link rel="stylesheet" href="<?= base_url(); ?>assets/css/jquery.bxslider.css">
        <!--<link rel="stylesheet" href="<?= base_url(); ?>assets/css/colorbox.css">-->
        <!--<link rel="stylesheet" href="<?= base_url(); ?>assets/css/jquery.loadmask.css">-->

        <!--[if IE]>
        <link rel="stylesheet" type="text/css" href="<?= base_url(); ?>assets/css/jquery.ui.1.8.16.ie.css"/>
        <![endif]-->

        <link rel="stylesheet" href="<?= base_url(); ?>assets/css/components2.css">
        <link rel="stylesheet" href="<?= base_url(); ?>assets/css/google_map.css">

        <link rel="stylesheet" href="<?= base_url(); ?>assets/css/main2.css">

        <link href='http://fonts.googleapis.com/css?family=Ubuntu:400,300,500,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>

        <script src="<?= base_url(); ?>assets/js/libs/modernizr-2.0.6.js"></script>

        <!-- VARS to JS -->
        <script type="text/javascript">
            var base_url = "<?= base_url() ?>";
            var title = "<?= $title ?>";
            var method = "<?= $this->router->fetch_method() ?>";
            var host_url = "<?= HOST_URL ?>";
            var srvr_url = "<?= SRVR_URL ?>";
            var lang = "<?= $this->lang->lang() ?>";


            var API = API || {};
            API = {
                Data: {
                    base_url: '<?= base_url(); ?>',
                    lang_url: '<?= base_url(); ?>',
                    method: '<?= $this->router->fetch_method(); ?>',
                    cur_lang: '<?= $this->lang->lang(); ?>',
                    HOST_URL: '<?= HOST_URL; ?>'
                },
            };

            // DO Langs here
            var lang = new Array();
            lang['search.search_placeholder'] = "<?= lang('search.search_placeholder'); ?>";
            lang['form.dest_region'] = "<?= lang('form.dest_region'); ?>";
            lang['form.person'] = "<?= lang('form.person'); ?>";
            lang['form.persons'] = "<?= lang('form.persons'); ?>";
            lang['form.show_all_items'] = "<?= lang('form.show_all_items'); ?>";

            lang['filter.filtering'] = "<?= lang('filter.filtering'); ?>";

            lang['dtl.adults'] = "<?= lang('dtl.adults'); ?>";
            lang['dtl.teenagers'] = "<?= lang('dtl.teenagers'); ?>";
            lang['dtl.children'] = "<?= lang('dtl.children'); ?>";
            lang['dtl.babies'] = "<?= lang('dtl.babies'); ?>";
            lang['days'] = "<?= lang('days'); ?>";
            lang['book_now'] = "<?= lang('res.book_now'); ?>";
            lang['calculating'] = "<?= lang('calculating'); ?>";

            lang['dtl.subscribing'] = "<?= lang('dtl.subscribing'); ?>";
            lang['dtl.subscribe_thanks'] = "<?= lang('dtl.subscribe_thanks'); ?>";
            lang['dtl.subscribe_alredy'] = "<?= lang('dtl.subscribe_alredy'); ?>";

            lang['dtl.posting_question'] = "<?= lang('dtl.posting_question'); ?>";
            lang['dtl.posting_thanks'] = "<?= lang('dtl.posting_thanks'); ?>";

            lang['available'] = "<?= lang('available'); ?>";
            lang['occupied'] = "<?= lang('occupied'); ?>";
            lang['selected'] = "<?= lang('selected'); ?>";
            lang['arrival'] = "<?= lang('arrival'); ?>";
            lang['departure'] = "<?= lang('departure') ?>";


        </script>


<!--          <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
          <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>-->

        <script src="<?= base_url(); ?>assets/js/libs/jquery-1.8.2.js"></script>
        <script src="<?= base_url(); ?>assets/js/libs/jquery-ui-1.9.1.min.js"></script>



    </head>

    <body class="nobg" id="met_<?= $this->router->method ?>">

        <div id="holder">

            <div class="wrapp">

                <div id="content">

                    <?php $this->load->view('layouts/header'); ?>

                    <div class="container clearfix">

                        <div class="clearfix"><?php echo $contents; ?></div>
                        <?php $this->load->view('layouts/subscribe'); ?>

                    </div>

                </div>

            </div>

        </div>

        <?php $this->load->view('layouts/footer'); ?>

        <?php $this->load->view('layouts/scripts'); ?>

        <div id="freeow" class="freeow freeow-top-right"></div>

    </body>

</html>
